package com.ly.demo.controller;

import com.ly.common.core.bean.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务端接口提供
 *
 * @author luoyun
 * @Date: 2025/5/19 12:08
 * @Note:
 */
@Tag(name = "服务端接口")
@Slf4j
@RestController
@RequestMapping("/test11/demo")
public class TestDemoApiController {

    @Operation(summary = "查询-name")
    @GetMapping("/getMessage")
    public R getMessage(@RequestParam(value = "name", required = false) String name) {
        return R.ok(name);
    }
}
